package org.example.springbootblog.service;

import jakarta.validation.constraints.NotNull;
import org.example.springbootblog.common.pojo.request.AddBlogParam;
import org.example.springbootblog.common.pojo.request.UpBlogParam;
import org.example.springbootblog.common.pojo.response.BlogInfoResponse;

import java.util.List;

public interface BlogService {
    //获取博客列表
    List<BlogInfoResponse> getList();

    //博客详情
    BlogInfoResponse getBlogDetail(Integer blogId);

    //发表博客
    Boolean addBlog(AddBlogParam param);

    //修改博客
    Boolean updateBlog(UpBlogParam param);

    //删除博客
    Boolean deleteBlog(@NotNull Integer blogId);
}

